using System;
using System.Linq;
using System.Windows.Forms;

namespace IppServer.Host
{
    internal static class Program
    {
        [STAThread]
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var launchedFromAutorun = args?.Any(a => string.Equals(a, "--autorun", StringComparison.OrdinalIgnoreCase)) == true;
            Application.Run(new Ui.MainForm(launchedFromAutorun));
        }
    }
}

